#ifndef CURRENTRGBCODE_H 
#define CURRENTRGBCODE_H

#include <string.h>
#include "Logging.h"
#include "RGBCode.h"

class CurrentRGBCode : public RGBCode
{
	public:
		CurrentRGBCode(int red, int green, int blue) : RGBCode(red, green, blue) {};
	
		void setRedValue(int value) {
			RGBCode::setRedValue(value);
			analogWrite(this->ledRedPin, value);
			String log = "Red LED set to: ";
			log += value;
			//Logging::writeDebugLog(log);
		};
		void setGreenValue(int value){
			RGBCode::setGreenValue(value);
			analogWrite(this->ledGreenPin, value);
			String log = "Green LED set to: ";
			log += value;
			//Logging::writeDebugLog(log);
		};
		void setBlueValue(int value){
			RGBCode::setBlueValue(value);
			analogWrite(this->ledBluePin, value);
			String log = "Blue LED set to: ";
			log += value;
			//Logging::writeDebugLog(log);
		};
		
	private:
		const static int ledRedPin = 11;
		const static int ledGreenPin = 10;
		const static int ledBluePin = 9;
};
#endif // CURRENTRGBCODE_H